package com.example.gis;

import android.app.Application;

import com.baidu.location.LocationClient;
import com.baidu.mapapi.CoordType;
import com.baidu.mapapi.SDKInitializer;

public class DemoApplication extends Application {
    @Override
    public void onCreate() {
        super.onCreate();
       //同意隐私协议;
        LocationClient.setAgreePrivacy(true);
        //初始化地图
        SDKInitializer.initialize(this);
        //设置坐标系为BD09LL坐标。
        SDKInitializer.setCoordType(CoordType.BD09LL);
    }
}
